<?php

namespace App\Http\Controllers\Web;

use App\Http\Controllers\Controller;
use App\Models\Activity\Activity;
use App\Models\Enroll\Enroll;
use App\Models\Enroll\Parser;
use Illuminate\Http\Request;

class HomeController extends Controller
{
    public function home()
    {
        /*$adminUrl = config('console.admin_url');
        if ($adminUrl) {
            return redirect($adminUrl);
        }*/

        return view('web.home');
    }

    public function dashboard()
    {
        return view('web.dashboard');
    }

    public function loginStatus()
    {
        return $this->respondJson();
    }

    public function test(Request $request)
    {
        dd('test');
        /*
        if (!$request->has('t')) {
            abort(404);
        }
        */
        //return view('upload');
        /*
        $enroll = Enroll::find(1);
        $parser = new Parser($enroll);

        echo $parser->toCandidateContent();
        */
    }
}
